Install az module if not installed in deploy-stress-tests.ps1#1995
Install az module if not installed in deploy-stress-tests.ps1#19951 commit merged intoAzure:mainfrom
Conversation
|
The following pipelines have been queued for testing: |
|
|
||
| . (Join-Path $PSScriptRoot "../Helpers" PSModule-Helpers.ps1) | ||
| Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module | ||
| Install-ModuleIfNotInstalled "az" "6.4.0" | Import-Module |
There was a problem hiding this comment.
We actually have a helper script just for this :) https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/scripts/Import-AzModules.ps1. However the script essentially does what you are doing here so I leave it to you how you want to use it.
There was a problem hiding this comment.
I figured just to be consistent with the other module install calls (and avoid double sourcing), I'd do it this way.
|
Hello @azure-sdk! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
No description provided.